from aiogram_dialog import Dialog, Window
from aiogram_dialog.widgets.kbd import Cancel

from src.presentation.tg_bot.dialogs.widgets import LocaleText
from src.presentation.tg_bot.states import HelpSG, MissingGeoSG, SoftProxySG

help_window = Window(
    LocaleText("help-msg"),
    Cancel(LocaleText("back-btn")),
    state=HelpSG.show_help_info,
)

missing_geo_window = Window(
    LocaleText("missing-geo-msg"),
    Cancel(LocaleText("back-btn")),
    state=MissingGeoSG.show_missing_geo_msg,
)

soft_proxy_window = Window(
    LocaleText("soft-proxy-msg"),
    Cancel(LocaleText("back-btn")),
    state=SoftProxySG.show_info,
)

help_dialog = Dialog(
    help_window,
)

missing_geo_dialog = Dialog(
    missing_geo_window,
)

soft_proxy_dialog = Dialog(
    soft_proxy_window,
)
